#ifndef VERIFYEXTRADIALOG_H
#define VERIFYEXTRADIALOG_H

#include <QDialog>
#include <QHash>
#include "cal.h"

namespace Ui {
class VerifyExtraDialog;
}

enum COL_INDEX{
    CI_NAME     = 0,    //科目名
    CI_USD_DIR  = 1,    //美金方向
    CI_USD_PV   = 2,    //美金原币
    CI_USD_MV   = 3,    //美金本币
    CI_RMB_DIR  = 4,    //人民币方向
    CI_RMB_PV   = 5,    //人民币余额
    CI_SUM_DIR  = 6,    //余额方向
    CI_SUM      = 7     //汇总余额
};

class VerifyExtraDialog : public QDialog
{
    Q_OBJECT

public:
    explicit VerifyExtraDialog(QWidget *parent = 0);
    ~VerifyExtraDialog();
    void setFSub(int fid);
    void setExtras(QHash<int,Double> fes,QHash<int,Double>ses,
                   QHash<int,Double>fms,QHash<int,Double> sms,
                   QHash<int,int> fds, QHash<int,int> sds);

private slots:
    void on_btnRead_clicked();

private:
    void init();
    void showDatas();

    int fid,y,m;
    Ui::VerifyExtraDialog *ui;
    QHash<int,Double> fes, ses;    //期初余额（以原币计）
    QHash<int,Double> fms, sms;    //期初余额（以本币计）
    QHash<int,int>    fds, sds;    //期初余额方向（以原币计）
};

#endif // VERIFYEXTRADIALOG_H
